projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa17b2c
)
[Bug 664238] GTK apps crash when dragging something
author
John Ralls
<jralls@ceridwen.us>
Sat, 19 Nov 2011 19:33:28 +0000
(11:33 -0800)
committer
John Ralls
<jralls@ceridwen.us>
Sun, 20 Nov 2011 18:35:40 +0000
(10:35 -0800)
Corrects a bad condition in a test in
085b98f4
gtk/gtkquartz.c
patch
|
blob
|
history
diff --git
a/gtk/gtkquartz.c
b/gtk/gtkquartz.c
index 30261ff32468005b67a251ec12cb392efa4e3ce7..e98dbb4527642b3b861af984da6c7ad2f9fa9a3f 100644
(file)
--- a/
gtk/gtkquartz.c
+++ b/
gtk/gtkquartz.c
@@
-39,7
+39,7
@@
_gtk_quartz_create_image_from_pixbuf (GdkPixbuf *pixbuf)
pixbuf_width = gdk_pixbuf_get_width (pixbuf);
pixbuf_height = gdk_pixbuf_get_height (pixbuf);
- g_return_val_if_fail (pixbuf_width
== 0 || pixbuf_height =
= 0, NULL);
+ g_return_val_if_fail (pixbuf_width
!= 0 && pixbuf_height !
= 0, NULL);
rowstride = gdk_pixbuf_get_rowstride (pixbuf);
has_alpha = gdk_pixbuf_get_has_alpha (pixbuf);